<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	request.setCharacterEncoding("UTF-8");
	String cp = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body style="font-size: 9pt;">

<c:choose>
	<c:when test="${empty sessionScope.session.userId }">
		로그인하면 새로운 세상이 보입니다.<br>
	</c:when>
	<c:otherwise>
		${sessionScope.session.userName }님 방가방가<br>
	</c:otherwise>
</c:choose>

<ul>
	<c:choose>
		<c:when test="${empty sessionScope.session.userId }">
			<li><a href="<%=cp %>/join/created.do">회원가입</a>
			<li><a href="<%=cp %>/join/login.do">로그인</a>
		</c:when>
		<c:otherwise>
			<li><a href="<%=cp %>/join/updated.do">정보수정</a>
			<li><a href="<%=cp %>/join/logout.do">로그아웃</a>
		</c:otherwise>
	</c:choose>
<li><a href="<%=cp %>/board/list.do">게시판</a>
</ul>
</body>
</html>